// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, exportPost, postBodyRequest, getNoAuthRequest, postNoAuthRequest } from '@/libs/axios';
import { param } from 'jquery';

// 分页获取数据
export const geteMploymentRate = params => {
    return postRequest('/employmentRate/getList', params);
};
// 获取高校学院数据
export const getxyCodeList = params => {
    return postRequest('/employmentRate/getxyCode', params);
};
// 分页获取数据
export const geteMploymentRateOutPut = params => {
    return exportPost('/employmentRate/getListOutPut', params);
};
export const getGxList = () => {
    return postRequest('/employmentRate/getGxList');
};
// region TODO 获取全部非省级学校
export const accessToAllNonProvincialSchoolsApi = param => postRequest('/schoolCode/getAllNoProvince', param);

export const getSchoolsApi = param => getRequest('/dataAudit/query/school/list', param);

export const getCollegesApi = param => getRequest('/dataAudit/query/college/list', param);

export const getZysApi = param => getRequest('/dataAudit/query/zy/list', param);

// region 七个率 xwb


// 获得七个率的时间下拉列表
export const getSevenRateTimeList = params => postRequest('/statistics/getSevenTime', params);

// 省级就业落实率
export const getEmploymentRatesApi = params => postRequest('/statistics/getEmploymentRates', params);
// 学校就业落实率
export const getSchoolEmploymentRatesApi = params => postRequest('/statistics/getSchoolEmploymentRates', params);
// 学院就业落实率
export const getCollegeEmploymentRatesApi = params => postRequest('/statistics/getCollegeEmploymentRates', params);

// 七个率 省级查看学校
export const getSevenRateProvince = params => postRequest('/statistics/getSevenRates', params);

// 七个率 学校查看学院
export const getSevenRateSchool = params => postRequest('/statistics/getSevenSchoolRates', params);

// 七个率 学院查看专业
export const getSevenRateCollege = params => postRequest('/statistics/getSevenCollegeRates', params);

// 七个率 学历层次
export const getSevenRateEduction = params => postRequest('/statistics/getSevenEducationalRates', params);
// endregion

// 灵活就业率 省级
export const getFlexibleEmploymentRateS = params => postRequest('/statisticsFlex/getFlexEmpSevenRates', params);
// 灵活就业率 校级
export const getFlexibleEmploymentRateX = params => postRequest('/statisticsFlex/getSchoolFlexEmpRates', params);
// 灵活就业率 院级

export const getFlexibleEmploymentRateY = params => postRequest('/statisticsFlex/getCollegeFlexEmpRates', params);

// 灵活就业率 学历层次
export const getFlexibleEmploymentRateEduction = params => postRequest('/statisticsFlex/getEducationFlexEmpRates', params);
// endregion

// region 就业落实率 xwb
// 省级获得就业落实率
export const getEmploymentRateProvince = params => postRequest('/statistics/getEmploymentRates', params);

// 校级获得就业落实率
export const getEmploymentRateSchool = params => postRequest('/statistics/getSchoolEmploymentRates', params);

// 院级获得就业落实率
export const getEmploymentRateCollege = params => postRequest('/statistics/getCollegeEmploymentRates', params);
//endregion


//随机抽查分页数据

export const getSpotcheckApi = param => postBodyRequest('/dataAudit/random/spotcheck', param);